/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司 All rights reserved.
 */
package cn.net.ecode.modules.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.net.ecode.common.persistence.CrudDao;
import cn.net.ecode.common.persistence.annotation.MyBatisDao;
import cn.net.ecode.modules.cms.entity.Article;
import cn.net.ecode.modules.cms.entity.Category;

/**
 * 文章DAO接口
 * @author ThinkGem
 * @version 2014-9-16
 */
@MyBatisDao
public interface ArticleDao extends CrudDao<Article> {

	public List<Article> findByIdIn(@Param("ids") String... ids);

	public int updateExpiredWeight(Article article);
	
	public int updateStatus(Article article);
	
	public int updateHitsAddOne(String id);
	
	public List<Category> findStats(Category category);

	//增加点击数
	public int addhits(String id);

}
